GetObject
Description
GetObject is used to obtain an object. this operation requires you to have read permission on the object.
Request Method
POST
Request Path
/apsara/route/OneRouter/GetObject
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
response-cache-control | BODY | string | No | No-cache | Set the cache-control header of the OSS return request. type: string default value: none |
response-content-disposition | BODY | string | No | attachment; filename:testing.txt | sets the content-disposition header of the OSS return request. type: string default value: none |
response-content-language | BODY | string | No | Chinese | sets the content-language header of the OSS return request. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
response-expires | BODY | string | No | Fri, 24 Feb 2012 17:00:00 GMT | sets the expires header of the OSS return request. |
response-content-encoding | BODY | string | No | utf-8 | sets the content-encoding header of the OSS return request. type: string default value: none |
response-content-type | BODY | string | No | text | Set the content-type header of the OSS return request. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}